package com.selfdriving.activity;

import net.tsz.afinal.annotation.view.ViewInject;

import com.selfdriving.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class AddFreindActivity extends BaseActivity {
	@ViewInject(id = R.id.topBack, click = "topBack")
	ImageView topBack;

	@ViewInject(id = R.id.topText)
	TextView topText;

	@ViewInject(id = R.id.topRight)
	Button topRight;
	
	@ViewInject(id = R.id.rlSearch, click = "rlSearch")
	RelativeLayout rlSearch;
	
	@ViewInject(id = R.id.rlMyAContact, click = "rlMyAContact")
	RelativeLayout rlMyAContact;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.add_friend);
		topText.setText("添加好友");
		topRight.setVisibility(View.GONE);
	}
	
	public void topBack(View v){
		this.finish();
	}
	
	public void rlSearch(View v){
		Intent intent = new Intent(this,SearchJoinActivity.class);
		intent.putExtra("type", 1);
		startActivity(intent);
	}
	
	public void rlMyAContact(View v){
		Intent intent = new Intent(this,ContactActivity.class);
		startActivity(intent);
	}

}
